bitkeeper revision 1.1709.1.15 (42b1cf6bRmJSwTLBy8EWehO-Ijc95g)
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 16 Jun 2005 19:13:47 +0000 (19:13 +0000)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 16 Jun 2005 19:13:47 +0000 (19:13 +0000)
Move include definitions around

.rootkeys
xen/arch/ia64/patch/linux-2.6.11/ptrace.h
xen/include/asm-ia64/domain.h
xen/include/asm-ia64/vmx_ptrace.h [deleted file]
xen/include/public/arch-ia64.h

index ca944205bb1cde176984c4c94ea7002f38a85059..0c1811d38ed1ec92a3b67be59db75aebed3f73ce 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 428b9f38is0zTsIm96_BKo4MLw0SzQ xen/include/asm-ia64/vmx_pal_vsa.h
 428b9f38iDqbugHUheJrcTCD7zlb4g xen/include/asm-ia64/vmx_phy_mode.h
 428b9f38grd_B0AGB1yp0Gi2befHaQ xen/include/asm-ia64/vmx_platform.h
-428b9f38lm0ntDBusHggeQXkx1-1HQ xen/include/asm-ia64/vmx_ptrace.h
 428b9f38XgwHchZEpOzRtWfz0agFNQ xen/include/asm-ia64/vmx_vcpu.h
 428b9f38tDTTJbkoONcAB9ODP8CiVg xen/include/asm-ia64/vmx_vpd.h
 428b9f38_o0U5uJqmxZf_bqi6_PqVw xen/include/asm-ia64/vtm.h
index dd79914f5926369c4a5f19e550c1d43293921279..f96ceb1ba0f4cffca1c813e3618ad2d2d42cfd6d 100644 (file)
@@ -4,9 +4,9 @@
   * (because the memory stack pointer MUST ALWAYS be aligned this way)
   *
   */
-+#ifdef CONFIG_VTI
-+#include "vmx_ptrace.h"
-+#else  //CONFIG_VTI
++#ifdef XEN
++#include <public/arch-ia64.h>
++#else
  struct pt_regs {
        /* The following registers are saved by SAVE_MIN: */
        unsigned long b6;               /* scratch */
@@ -14,7 +14,7 @@
        struct ia64_fpreg f10;          /* scratch */
        struct ia64_fpreg f11;          /* scratch */
  };
-+#endif // CONFIG_VTI
++#endif
  
  /*
   * This structure contains the addition registers that need to
index a4caf018b6f495faeb08f76856ed0c465417ffc3..27ff16e5609692169658ab89690bd405a5a77cae 100644 (file)
@@ -2,6 +2,7 @@
 #define __ASM_DOMAIN_H__
 
 #include <linux/thread_info.h>
+#include <asm/tlb.h>
 #ifdef CONFIG_VTI
 #include <asm/vmx_vpd.h>
 #include <asm/vmmu.h>
diff --git a/xen/include/asm-ia64/vmx_ptrace.h b/xen/include/asm-ia64/vmx_ptrace.h
deleted file mode 100644 (file)
index 4065c09..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Copyright (C) 1998-2003 Hewlett-Packard Co
- *  David Mosberger-Tang <davidm@hpl.hp.com>
- *  Stephane Eranian <eranian@hpl.hp.com>
- * Copyright (C) 2003 Intel Co
- *  Suresh Siddha <suresh.b.siddha@intel.com>
- *  Fenghua Yu <fenghua.yu@intel.com>
- *  Arun Sharma <arun.sharma@intel.com>
- *
- * 12/07/98 S. Eranian  added pt_regs & switch_stack
- * 12/21/98 D. Mosberger    updated to match latest code
- *  6/17/99 D. Mosberger    added second unat member to "struct switch_stack"
- *  4/28/05 Anthony Xu   ported to Xen
- *
- */
-
-struct pt_regs {
-       /* The following registers are saved by SAVE_MIN: */
-       unsigned long b6;               /* scratch */
-       unsigned long b7;               /* scratch */
-
-       unsigned long ar_csd;           /* used by cmp8xchg16 (scratch) */
-       unsigned long ar_ssd;           /* reserved for future use (scratch) */
-
-       unsigned long r8;               /* scratch (return value register 0) */
-       unsigned long r9;               /* scratch (return value register 1) */
-       unsigned long r10;              /* scratch (return value register 2) */
-       unsigned long r11;              /* scratch (return value register 3) */
-
-       unsigned long cr_ipsr;          /* interrupted task's psr */
-       unsigned long cr_iip;           /* interrupted task's instruction pointer */
-       unsigned long cr_ifs;           /* interrupted task's function state */
-
-       unsigned long ar_unat;          /* interrupted task's NaT register (preserved) */
-       unsigned long ar_pfs;           /* prev function state  */
-       unsigned long ar_rsc;           /* RSE configuration */
-       /* The following two are valid only if cr_ipsr.cpl > 0: */
-       unsigned long ar_rnat;          /* RSE NaT */
-       unsigned long ar_bspstore;      /* RSE bspstore */
-
-       unsigned long pr;               /* 64 predicate registers (1 bit each) */
-       unsigned long b0;               /* return pointer (bp) */
-       unsigned long loadrs;           /* size of dirty partition << 16 */
-
-       unsigned long r1;               /* the gp pointer */
-       unsigned long r12;              /* interrupted task's memory stack pointer */
-       unsigned long r13;              /* thread pointer */
-
-       unsigned long ar_fpsr;          /* floating point status (preserved) */
-       unsigned long r15;              /* scratch */
-
-       /* The remaining registers are NOT saved for system calls.  */
-
-       unsigned long r14;              /* scratch */
-       unsigned long r2;               /* scratch */
-       unsigned long r3;               /* scratch */
-       unsigned long r4;               /* preserved */
-       unsigned long r5;               /* preserved */
-       unsigned long r6;               /* preserved */
-       unsigned long r7;               /* preserved */
-    unsigned long cr_iipa;   /* for emulation */
-    unsigned long cr_isr;    /* for emulation */
-    unsigned long eml_unat;    /* used for emulating instruction */
-    unsigned long rfi_pfs;     /* used for elulating rfi */
-
-       /* The following registers are saved by SAVE_REST: */
-       unsigned long r16;              /* scratch */
-       unsigned long r17;              /* scratch */
-       unsigned long r18;              /* scratch */
-       unsigned long r19;              /* scratch */
-       unsigned long r20;              /* scratch */
-       unsigned long r21;              /* scratch */
-       unsigned long r22;              /* scratch */
-       unsigned long r23;              /* scratch */
-       unsigned long r24;              /* scratch */
-       unsigned long r25;              /* scratch */
-       unsigned long r26;              /* scratch */
-       unsigned long r27;              /* scratch */
-       unsigned long r28;              /* scratch */
-       unsigned long r29;              /* scratch */
-       unsigned long r30;              /* scratch */
-       unsigned long r31;              /* scratch */
-
-       unsigned long ar_ccv;           /* compare/exchange value (scratch) */
-
-       /*
-        * Floating point registers that the kernel considers scratch:
-        */
-       struct ia64_fpreg f6;           /* scratch */
-       struct ia64_fpreg f7;           /* scratch */
-       struct ia64_fpreg f8;           /* scratch */
-       struct ia64_fpreg f9;           /* scratch */
-       struct ia64_fpreg f10;          /* scratch */
-       struct ia64_fpreg f11;          /* scratch */
-};
-
-
index 50b5f5f608a6b95ce9b3055b51c1be29bfc500b0..cd259c2e0482568f4be28139504afca1f5466416 100644 (file)
@@ -58,11 +58,99 @@ typedef struct
  * structure size will still be 8 bytes, so no other alignments will change.
  */
 typedef struct {
-    u32  tsc_bits;      /* 0: 32 bits read from the CPU's TSC. */
-    u32  tsc_bitshift;  /* 4: 'tsc_bits' uses N:N+31 of TSC.   */
+    unsigned int  tsc_bits;      /* 0: 32 bits read from the CPU's TSC. */
+    unsigned int  tsc_bitshift;  /* 4: 'tsc_bits' uses N:N+31 of TSC.   */
 } PACKED tsc_timestamp_t; /* 8 bytes */
 
-#include <asm/tlb.h>   /* TR_ENTRY */
+struct pt_fpreg {
+        union {
+                unsigned long bits[2];
+                long double __dummy;    /* force 16-byte alignment */
+        } u;
+};
+
+struct pt_regs {
+       /* The following registers are saved by SAVE_MIN: */
+       unsigned long b6;               /* scratch */
+       unsigned long b7;               /* scratch */
+
+       unsigned long ar_csd;           /* used by cmp8xchg16 (scratch) */
+       unsigned long ar_ssd;           /* reserved for future use (scratch) */
+
+       unsigned long r8;               /* scratch (return value register 0) */
+       unsigned long r9;               /* scratch (return value register 1) */
+       unsigned long r10;              /* scratch (return value register 2) */
+       unsigned long r11;              /* scratch (return value register 3) */
+
+       unsigned long cr_ipsr;          /* interrupted task's psr */
+       unsigned long cr_iip;           /* interrupted task's instruction pointer */
+       unsigned long cr_ifs;           /* interrupted task's function state */
+
+       unsigned long ar_unat;          /* interrupted task's NaT register (preserved) */
+       unsigned long ar_pfs;           /* prev function state  */
+       unsigned long ar_rsc;           /* RSE configuration */
+       /* The following two are valid only if cr_ipsr.cpl > 0: */
+       unsigned long ar_rnat;          /* RSE NaT */
+       unsigned long ar_bspstore;      /* RSE bspstore */
+
+       unsigned long pr;               /* 64 predicate registers (1 bit each) */
+       unsigned long b0;               /* return pointer (bp) */
+       unsigned long loadrs;           /* size of dirty partition << 16 */
+
+       unsigned long r1;               /* the gp pointer */
+       unsigned long r12;              /* interrupted task's memory stack pointer */
+       unsigned long r13;              /* thread pointer */
+
+       unsigned long ar_fpsr;          /* floating point status (preserved) */
+       unsigned long r15;              /* scratch */
+
+       /* The remaining registers are NOT saved for system calls.  */
+
+       unsigned long r14;              /* scratch */
+       unsigned long r2;               /* scratch */
+       unsigned long r3;               /* scratch */
+
+#ifdef CONFIG_VTI
+       unsigned long r4;               /* preserved */
+       unsigned long r5;               /* preserved */
+       unsigned long r6;               /* preserved */
+       unsigned long r7;               /* preserved */
+       unsigned long cr_iipa;   /* for emulation */
+       unsigned long cr_isr;    /* for emulation */
+       unsigned long eml_unat;    /* used for emulating instruction */
+       unsigned long rfi_pfs;     /* used for elulating rfi */
+#endif
+
+       /* The following registers are saved by SAVE_REST: */
+       unsigned long r16;              /* scratch */
+       unsigned long r17;              /* scratch */
+       unsigned long r18;              /* scratch */
+       unsigned long r19;              /* scratch */
+       unsigned long r20;              /* scratch */
+       unsigned long r21;              /* scratch */
+       unsigned long r22;              /* scratch */
+       unsigned long r23;              /* scratch */
+       unsigned long r24;              /* scratch */
+       unsigned long r25;              /* scratch */
+       unsigned long r26;              /* scratch */
+       unsigned long r27;              /* scratch */
+       unsigned long r28;              /* scratch */
+       unsigned long r29;              /* scratch */
+       unsigned long r30;              /* scratch */
+       unsigned long r31;              /* scratch */
+
+       unsigned long ar_ccv;           /* compare/exchange value (scratch) */
+
+       /*
+        * Floating point registers that the kernel considers scratch:
+        */
+       struct pt_fpreg f6;             /* scratch */
+       struct pt_fpreg f7;             /* scratch */
+       struct pt_fpreg f8;             /* scratch */
+       struct pt_fpreg f9;             /* scratch */
+       struct pt_fpreg f10;            /* scratch */
+       struct pt_fpreg f11;            /* scratch */
+};
 
 typedef struct {
        unsigned long ipsr;
@@ -104,11 +192,6 @@ typedef struct {
 //} PACKED arch_shared_info_t;
 } arch_shared_info_t;          // DON'T PACK 
 
-/*
- * The following is all CPU context. Note that the i387_ctxt block is filled 
- * in by FXSAVE if the CPU has feature FXSR; otherwise FSAVE is used.
- */
-#include <asm/ptrace.h>
 typedef struct vcpu_guest_context {
        struct pt_regs regs;
        arch_vcpu_info_t vcpu;